#ifndef MYAPPOINTMENTSPAGE_H
#define MYAPPOINTMENTSPAGE_H

#include <QWidget>
#include "../Tools/clienttcp.h"
#include <QListWidget>
#include <QPushButton>
#include <QVBoxLayout>
#include <QLabel>
#include <QMessageBox>
#include <QHBoxLayout>
#include <QFont>

class MyAppointmentsPage : public QWidget {
    Q_OBJECT

public:
    explicit MyAppointmentsPage(int currentID, QString& role, QWidget *parent = nullptr);

signals:
    void backToHomePage(); // 返回主页的信号

    // 头文件中的槽函数声明
public slots:
    void loadMyAppointments(int currentID);  // 槽函数，用于接收信号并加载数据


private:
    QListWidget *appointmentsList; // 预约记录列表
    int currentID;
    QString role;
    ClientTcp *tcp;
    QList<QJsonObject> appo_Data; // 存储预约数据
};

#endif // MYAPPOINTMENTSPAGE_H
